﻿using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;

namespace EntityModel
{
    public class APIDBContext:DbContext
    {
        /// <summary>
        /// 数据上下文
        /// </summary>
        /// <param name="opts"></param>
        public APIDBContext(DbContextOptions<APIDBContext> opts) : base(opts)
        {

        }

        #region 李涛
        /// <summary>
        /// 登录表
        /// </summary>
        public DbSet<EM_Enroll> EM_Enroll { get; set; }

        /// <summary>
        /// 学生表
        /// </summary>
        public DbSet<EM_Students> EM_Students { get; set; }

        /// <summary>
        /// 教师表
        /// </summary>
        public DbSet<EM_Teachers> EM_Teachers { get; set; }
        #endregion


        #region 陈哲
        /// <summary>
        /// 班级表
        /// </summary>
        public DbSet<EM_Class> EM_Class { get; set; }

        /// <summary>
        /// 系部表
        /// </summary>
        public DbSet<EM_Department> EM_Department { get; set; }

        /// <summary>
        /// 课程表
        /// </summary>
        public DbSet<EM_Lesson> EM_Lesson { get; set; }
        #endregion


        #region 陈亮
        /// <summary>
        /// 考勤表
        /// </summary>
        public DbSet<EM_Attendance> EM_Attendance { get; set; }

        /// <summary>
        /// 成绩表
        /// </summary>
        public DbSet<EM_Score> EM_Score { get; set; }

        /// <summary>
        /// 食堂表
        /// </summary>
        public DbSet<EM_Canteen> EM_Canteen { get; set; }
        #endregion


        #region 王欣雨
        /// <summary>
        /// 社团表
        /// </summary>
        public DbSet<Organizations> Organizations { get; set; }

        /// <summary>
        /// 宿舍表
        /// </summary>
        public DbSet<EM_Hostel> EM_Hostel { get; set; }

        /// <summary>
        /// 用户缴费表
        /// </summary>
        public DbSet<UserPayment> UserPayment { get; set; }
        #endregion


    }
}
